package vista;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.ListModel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import clasesCreadas.JPanelImagen;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaAdministrarCaja extends javax.swing.JFrame {
	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	private JButton btnLimpiar;
	private JButton btnEliminar;
	private JButton btnSalir;
	private JLabel lblTotal;
	private JTextField txtAbono;
	private JLabel lblTipoMovimiento;
	private JLabel lblsubrayado;
	private JLabel lblTotalDinero;
	private ButtonGroup bgFacturado;
	private ButtonGroup bgTipoPago;
	private JPanel pnlmenu;
	private JLabel lblTotalFloat;
	private JList listBusqueda;
	private JScrollPane spItemBusqueda;
	private JButton btnGuardar;
	private JScrollPane scpDireccion;
	private JButton btnRetiro;
	private JButton btnAbono;
	private JLabel lblConcepto;
	private JTextArea txtDireccion;
	private JPanelImagen pnlimagen2;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaAdministrarCaja inst = new VentanaAdministrarCaja();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VentanaAdministrarCaja() {
		super(" Administar Caja                                                           Copy David C.A J-29901186-0");
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setResizable(false);
			{
				pnlimagen2 = new JPanelImagen("pantalla.jpg");
				getContentPane().add(pnlimagen2, BorderLayout.NORTH);
				pnlimagen2.setLayout(null);
				//pnlimagen2.setBounds(10, 15, 150, 95);
				pnlimagen2.setPreferredSize(new java.awt.Dimension(687, 594));
				pnlimagen2.setBackground(new java.awt.Color(77,77,77));
				{
					btnGuardar = new VJButtonImg("","Guardar   F2");
					pnlimagen2.add(btnGuardar);
					btnGuardar.setBounds(134, 473, 93, 44);
					btnGuardar.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Iconos/Guardar.png")));
				}
				{
					btnLimpiar = new VJButtonImg("","limpiar   F8");
					pnlimagen2.add(btnLimpiar);
					btnLimpiar.setBounds(270, 473, 93, 44);
					btnLimpiar.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Iconos/Borrar.png")));
				}
				{
					btnSalir = new VJButtonImg("","Salir   F10");
					pnlimagen2.add(btnSalir);
					btnSalir.setBounds(549, 475, 93, 44);
					btnSalir.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Iconos/Salir.png")));
				}
				{
					btnEliminar = new VJButtonImg("","Eliminar   F12");
					pnlimagen2.add(btnEliminar);
					btnEliminar.setBounds(409, 475, 93, 44);
					btnEliminar.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Iconos/Eliminar.png")));
				}
					{
						lblTotal = new JLabel();
						pnlimagen2.add(lblTotal);
						lblTotal.setText("Total:");
						lblTotal.setBounds(332, 134, 102, 21);
						lblTotal.setForeground(new java.awt.Color(255,0,0));
						lblTotal.setFont(new java.awt.Font("Nimbus Mono L",3,26));
					}
					{
						lblTotalFloat = new JLabel();
						pnlimagen2.add(lblTotalFloat);
						lblTotalFloat.setText("0.00");
						lblTotalFloat.setBounds(440, 132, 95, 23);
						lblTotalFloat.setFont(new java.awt.Font("Nimbus Mono L",3,24));
					}
					{
						scpDireccion = new JScrollPane();
						pnlimagen2.add(scpDireccion);
						scpDireccion.setBounds(338, 280, 203, 40);
						{
							txtDireccion = new JTextArea();
							scpDireccion.setViewportView(txtDireccion);
							//txtDireccion.setPreferredSize(new java.awt.Dimension(197, 32));
							//txtDireccion.setBounds(310, 304, 312, 55);
							//txtDireccion.setPreferredSize(new java.awt.Dimension(333, 55));
						}
					}
					{
						lblTotalDinero = new JLabel();
						lblTotalDinero.setText("TOTAL DINERO EN CAJA");
						lblTotalDinero.setBounds(211, 71, 456, 36);
						lblTotalDinero.setFont(new java.awt.Font("Nimbus Mono L",3,36));
						pnlimagen2.add(lblTotalDinero);
					}
					{
						lblsubrayado = new JLabel();
						lblsubrayado.setText("________________________________________________________________________");
						lblsubrayado.setBounds(217, 92, 434, 15);
						pnlimagen2.add(lblsubrayado);
					}
					{
						txtAbono = new JTextField();
						txtAbono.setBounds(338, 226, 137, 35);
						pnlimagen2.add(txtAbono);
					}
					{
						lblConcepto = new JLabel();
						lblConcepto.setText("Concepto");
						lblConcepto.setBounds(277, 294, 62, 15);
						pnlimagen2.add(lblConcepto);
					}
					{
						lblTipoMovimiento = new JLabel();
						lblTipoMovimiento.setText("Abono");
						lblTipoMovimiento.setBounds(278, 234, 50, 15);
						pnlimagen2.add(lblTipoMovimiento);
					}
					{
						pnlmenu = new JPanel();
						pnlmenu.setBounds(59, 174, 85, 183);
						pnlmenu.setLayout(null);
						pnlmenu.setBackground(new java.awt.Color(247,235,235));
						pnlmenu.setBorder(BorderFactory.createTitledBorder(""));
						pnlimagen2.add(pnlmenu);
					
						{
							btnRetiro = new VJButtonImg("","Retiro");
							btnRetiro.setBounds(10, 112, 65, 38);
							btnRetiro.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Iconos/retiro.jpg")));
							pnlmenu.add(btnRetiro);
						}
						{
							btnAbono = new VJButtonImg("","Abono");
							btnAbono.setBounds(10, 33, 68, 48);
							btnAbono.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Iconos/abonar.jpeg")));
							pnlmenu.add(btnAbono);
						}
					}

			}
			pack();
			this.setSize(697, 626);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
